import RunData from "../../config/RunData";
import BaseUrl from "./BaseUrl";

/**
 * 获取验证码
 */
export default class getCheckCode extends BaseUrl{
    userId;
    businessType;//1-注册；2-重置密码；3-历史病历查看；4-预约记录查看 5-医检报告查看；6-开通医保线上支付；7-修改医保线上支; 8-支付验证码
    phoneNumber;
    cardNo;
    cardNoType;

    constructor(userId, businessType,phoneNumber) {
        super();
        this.userId = userId;
        this.businessType = businessType;
        this.phoneNumber = phoneNumber;
    }

    getParamMethod(){
        if(RunData.MyUserInfo){
            if (RunData.MyUserInfo.isNewVersion()){
                return "getCheckCodeByPlt";
            }else{
                return "getCheckCode";
            }
        }else{
            return "getCheckCode";//没登录情况下，默认这个
        }
    }
}